﻿
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Mondial2014.Models.Location;

namespace Mondial2014.Models.Gambling
{
    public class Gambler
    {
        public int Id { get; set; }

        [Display(Name = "שם")]
        public string Name { get; set; }

        [Display(Name = "כתובת")]
        public Address Address { get; set; }

        [Display(Name = "ניקוד משלב הבתים")]
        public int GroupsStageScore { get; set; }

        [Display(Name = "ניקוד משלב ההצלבה")]
        public int KnockoutStageScore { get; set; }

        public int CurrentPosition { get; set; }

        public int LastPosition { get; set; }

        [Display(Name = "סה\"כ נקודות")]
        [NotMapped]
        public int TotalScore
        {
            get { return GroupsStageScore + KnockoutStageScore; }
        }
    }
}